Integrand size = 31, antiderivative size = 52 \[ \int \frac {(a+i a \tan (e+f x))^m}{c-i c \tan (e+f x)} \, dx=-\frac {i \operatorname {Hypergeometric2F1}\left (2,m,1+m,\frac {1}{2} (1+i \tan (e+f x))\right ) (a+i a \tan (e+f x))^m}{4 c f m} \]
[Out]
Time = 0.15 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {3603, 3568, 70} \[ \int \frac {(a+i a \tan (e+f x))^m}{c-i c \tan (e+f x)} \, dx=-\frac {i (a+i a \tan (e+f x))^m \operatorname {Hypergeometric2F1}\left (2,m,m+1,\frac {1}{2} (i \tan (e+f x)+1)\right )}{4 c f m} \]
[In]
[Out]
Rule 70
Rule 3568
Rule 3603
Rubi steps \begin{align*} \text {integral}& = \frac {\int \cos ^2(e+f x) (a+i a \tan (e+f x))^{1+m} \, dx}{a c} \\ & = -\frac {\left (i a^2\right ) \text {Subst}\left (\int \frac {(a+x)^{-1+m}}{(a-x)^2} \, dx,x,i a \tan (e+f x)\right )}{c f} \\ & = -\frac {i \operatorname {Hypergeometric2F1}\left (2,m,1+m,\frac {1}{2} (1+i \tan (e+f x))\right ) (a+i a \tan (e+f x))^m}{4 c f m} \\ \end{align*}
Time = 1.19 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.00 \[ \int \frac {(a+i a \tan (e+f x))^m}{c-i c \tan (e+f x)} \, dx=-\frac {i \operatorname {Hypergeometric2F1}\left (2,m,1+m,\frac {1}{2} (1+i \tan (e+f x))\right ) (a+i a \tan (e+f x))^m}{4 c f m} \]
[In]
[Out]
\[\int \frac {\left (a +i a \tan \left (f x +e \right )\right )^{m}}{c -i c \tan \left (f x +e \right )}d x\]
[In]
[Out]
\[ \int \frac {(a+i a \tan (e+f x))^m}{c-i c \tan (e+f x)} \, dx=\int { \frac {{\left (i \, a \tan \left (f x + e\right ) + a\right )}^{m}}{-i \, c \tan \left (f x + e\right ) + c} \,d x } \]
[In]
[Out]
\[ \int \frac {(a+i a \tan (e+f x))^m}{c-i c \tan (e+f x)} \, dx=\frac {i \int \frac {\left (i a \tan {\left (e + f x \right )} + a\right )^{m}}{\tan {\left (e + f x \right )} + i}\, dx}{c} \]
[In]
[Out]
Exception generated. \[ \int \frac {(a+i a \tan (e+f x))^m}{c-i c \tan (e+f x)} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
\[ \int \frac {(a+i a \tan (e+f x))^m}{c-i c \tan (e+f x)} \, dx=\int { \frac {{\left (i \, a \tan \left (f x + e\right ) + a\right )}^{m}}{-i \, c \tan \left (f x + e\right ) + c} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(a+i a \tan (e+f x))^m}{c-i c \tan (e+f x)} \, dx=\int \frac {{\left (a+a\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}\right )}^m}{c-c\,\mathrm {tan}\left (e+f\,x\right )\,1{}\mathrm {i}} \,d x \]
[In]
[Out]